﻿@model Tesis2.Models.Usuario

@{
    ViewBag.Title = "Edit";
}

<h2>Editar Usuario</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Usuario</legend>

        @Html.HiddenFor(model => model.UsuarioID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Nombre)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nombre)
            @Html.ValidationMessageFor(model => model.Nombre)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Contrasena)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Contrasena)
            @Html.ValidationMessageFor(model => model.Contrasena)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EstadoSesion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EstadoSesion)
            @Html.ValidationMessageFor(model => model.EstadoSesion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EstadoUsuarioID, "EstadoUsuario")
        </div>
        <div class="editor-field">
            @Html.DropDownList("EstadoUsuarioID", String.Empty)
            @Html.ValidationMessageFor(model => model.EstadoUsuarioID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PerfilUsuarioID, "PerfilUsuario")
        </div>
        <div class="editor-field">
            @Html.DropDownList("PerfilUsuarioID", String.Empty)
            @Html.ValidationMessageFor(model => model.PerfilUsuarioID)
        </div>

        <p>
            <button type="submit" class="boton" id="Btn_enviar" ><img src="~/Images/aceptar.png"></button>
            <a href='@Url.Action("Index", "Usuario")' class="boton">
                <img src='@Url.Content("~/Images/cancelar.png")' />
            </a>
        </p>
    </fieldset>
}


@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
